#include "qresourceplugin.h"

#include "qresourcewidget.h"

#include <qplugin.h>
#include <QIcon>
#include <QVariant>

QString QResourcePlugin::pluginName()
{
    return "Resource.Plugin";
}

void QResourcePlugin::createWidget()
{
    m_widget=new QResourceWidget;
    m_widget->setProperty("panelwidget",true);
}

QString QResourcePlugin::getPageName()
{
    return tr("Resource");
}

QIcon QResourcePlugin::getPageIcon()
{
    return QIcon(":/images/resource.png");
}

int QResourcePlugin::getIndex()
{
    return 4;
}

bool QResourcePlugin::getEnabled()
{
    return true;
}

Q_EXPORT_PLUGIN2(QResourcePlugin,QResourcePlugin)
